mkdir /root/DockerFile/dockerfile7
echo "FROM centos
RUN rm /etc/yum.repos.d/*.repo
RUN curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
RUN yum clean all && yum makecache && yum install vim -y
" > /root/DockerFile/dockerfile7>Dockerfile
podman build -t build -t centos:latest
podman run -it --name centos01 localhost/centos
